home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 2 / ETO Development Tools 2.iso / Essentials / Developer Essentials Nov 90 / Apple II / Apple.II.partition / Utilities / rTutors / part3.2 / rTutor.make < prev    next >
Encoding:
Text File  |  1990-06-19  |  1.6 KB  |  40 lines  |  [TEXT/pdos]

  1. * Just to be sure everybody gets to read all this stuff, let's turn on echo
  2. set echo on
  3. *
  4. * This exec file will compile, link, etc to produce the rTutor.S16 application
  5. *
  6. * First, we compile and link the APW C source to produce the data fork
  7. *
  8. compile rtutor.cc keep=$
  9. linkIIGS 2/start.root rtutor.root -lib 2/clib -t exe -o rtutor.dfork
  10. *
  11. * Second, we compile the Rez source to create the resource fork
  12. * be sure to set the resulting file type to that of a "resource only file"
  13. * see Apple II File Type Note for file type $5E
  14. * The Rez source has been split into two files so that the stuff that hasn't
  15. * changed since the last time doesn't have to be recompiled.  This helps
  16. * speed up future compiles.  The new stuff is simply "appended" to the old stuff
  17. compile rtutor.rez keep=rtutor.rfork rez=(-t $5E)
  18. compile rtutor.new.rez keep=rtutor.rfork rez=(-t $5E -a rtutor.rfork)
  19. *
  20. * Now put the pieces together to form the complete app
  21. * First, we delete the old app (which may or may not exist)
  22. * To protect against this script exiting if we try to delete a file
  23. * that doesn't exist, we'll just turn off the "exit" variable before
  24. * we try to delete the file.  Turn it back on afterwards to catch other
  25. * errors
  26. unset exit
  27. delete rtutor.s16
  28. set exit on
  29. * Copy the data fork to the new app
  30. duplicate -d rtutor.dfork rtutor.s16
  31. * Copy the resource fork to the new app
  32. duplicate -r rtutor.rfork rtutor.s16
  33. *
  34. * Set the file type of the resulting application to S16
  35. filetype rtutor.s16 s16
  36. *
  37. * That's it, go run the app and then study it to learn more about how
  38. * wonderful resources are!!
  39. *
  40.